verbose_add_subdirectory(doc docbook)
verbose_add_subdirectory(doc html)
verbose_add_subdirectory(doc legal)

set(
  documentation_DATA
  BRL-CAD.bib
  GITHUB
  IDEAS
  PROJECTS
  README.Linux
  README.MacOSX
  README.Windows
  README.BSD
  README.Solaris
  README.VAX
  checklist.txt
  description.txt
  notes/TODO.BREP
  notes/TODO.shaded_displays
  notes/apitrace.txt
  notes/brep.txt
  notes/bu_opt_design_notes.txt
  notes/cvs.txt
  notes/debugging_example.txt
  notes/debugging_notes.txt
  notes/editors.txt
  notes/history.txt
  notes/hypot.txt
  notes/mater.txt
  notes/matrix.txt
  pre_BRL-CAD.bib
)
add_doc(documentation_DATA ".")

set(
  documentation_mged_old_DATA
  mged/a.tex
  mged/adc.ps
  mged/all.tex
  mged/axis-3525.ps
  mged/b.tex
  mged/buttonmenu.ps
  mged/c.tex
  mged/coord-axes.ps
  mged/crod-close.ps
  mged/crod.ps
  mged/d.tex
  mged/doit
  mged/e.tex
  mged/eo-arbrot.ps
  mged/eo-bgrp.ps
  mged/eo-bgrp311.ps
  mged/eo-cgrp.ps
  mged/eo-cgrp321.ps
  mged/eo-ellg.ps
  mged/eo-ellg2x.ps
  mged/eo-ellgxyz.ps
  mged/eo-gredit.ps
  mged/eo-grpath.ps
  mged/eo-scale.ps
  mged/eo-spread.ps
  mged/eo-stacked.ps
  mged/eo-start.ps
  mged/eo-tor111.ps
  mged/eo-xymove.ps
  mged/eo-xyzmove.ps
  mged/es5-edge1.ps
  mged/es5-edge2.ps
  mged/es5-edge3.ps
  mged/es5-edge4.ps
  mged/es5-rot.ps
  mged/es5-scale.ps
  mged/es5-sed.ps
  mged/es5-top.ps
  mged/es5-tr.ps
  mged/es5-xrot.ps
  mged/es8-edge1.ps
  mged/es8-edge2.ps
  mged/es8-edge3.ps
  mged/es8-ex1.ps
  mged/es8-ex2.ps
  mged/es8-rot.ps
  mged/es8-scale.ps
  mged/es8-sed.ps
  mged/es8-top.ps
  mged/es8-tr0.ps
  mged/es8-xrot.ps
  mged/es8-yrot.ps
  mged/es8-zrot.ps
  mged/esc-mh.ps
  mged/esc-mhrt.ps
  mged/esc-rot.ps
  mged/esc-sa.ps
  mged/esc-sb.ps
  mged/esc-sc.ps
  mged/esc-scale.ps
  mged/esc-sd.ps
  mged/esc-sed.ps
  mged/esc-sh.ps
  mged/esc-top.ps
  mged/esc-tr.ps
  mged/esc-xrot.ps
  mged/esc-yrot.ps
  mged/esc-zrot.ps
  mged/ese-sa.ps
  mged/ese-sb.ps
  mged/ese-sc.ps
  mged/ese-scale.ps
  mged/ese-sed.ps
  mged/ese-top.ps
  mged/ese-tr.ps
  mged/ese-xrot.ps
  mged/ese-yrot.ps
  mged/ese-zrot.ps
  mged/est-scale.ps
  mged/est-sed.ps
  mged/est-sr1.ps
  mged/est-sr2.ps
  mged/est-top.ps
  mged/est-tr.ps
  mged/est-xrot.ps
  mged/est-yrot.ps
  mged/est-zrot.ps
  mged/ex.arb4.ps
  mged/ex.arb8.ps
  mged/ex.box.ps
  mged/ex.ellg.ps
  mged/ex.raw.ps
  mged/ex.rcc.ps
  mged/ex.rpp.ps
  mged/ex.sph.ps
  mged/ex.tor.ps
  mged/ex.trc.ps
  mged/f.tex
  mged/faceplate.ps
  mged/faceplate1.ps
  mged/fig-sgi-buttons.ps
  mged/fig-sgi-knobs.ps
  mged/fig-sgi.ps
  mged/fig-vg-buttons.ps
  mged/fig-vg-knobs.ps
  mged/g.tex
  mged/h.tex
  mged/j.tex
  mged/k.tex
  mged/l.tex
  mged/m.tex
  mged/menu-arb-ctl.ps
  mged/menu-arb4-edge.ps
  mged/menu-arb4-face.ps
  mged/menu-arb4-rot.ps
  mged/menu-arb8-edge.ps
  mged/menu-arb8-face.ps
  mged/menu-arb8-rot.ps
  mged/obj-edit.ps
  mged/obj-path.ps
  mged/obj-pick.ps
  mged/ped-ell.ps
  mged/ped-tgc.ps
  mged/ped-tor.ps
  mged/plane-35a.ps
  mged/plane-35b.ps
  mged/plane-bot1.ps
  mged/plane-bot2.ps
  mged/plane-front1.ps
  mged/plane-front2.ps
  mged/plane-right1.ps
  mged/plane-right2.ps
  mged/plane-top1.ps
  mged/plane-top2.ps
  mged/rmit-3525.ps
  mged/robot.ps
  mged/sol-2pick.ps
  mged/sol-ed.ps
  mged/sol-pick.ps
  mged/t1-2s-pk.ps
  mged/t1-obj-ed.ps
  mged/t1-obj-ph.ps
  mged/t1-obj-pk.ps
  mged/t1-rot-vw.ps
  mged/t1-sol-ed.ps
  mged/t1-sol-pk.ps
  mged/t1-top-vw.ps
  mged/t1.tex
  mged/test.tex
  mged/v-arb8-side.ps
  mged/v-arb8-top.ps
  mged/wm-arm1.ps
  mged/wm-arm2.ps
  mged/wm-body.ps
  mged/wm-collar.ps
  mged/wm-final1.ps
  mged/wm-hat-E.ps
  mged/wm-hat1.ps
  mged/wm-hat2.ps
  mged/wm-hat3.ps
  mged/wm-head.ps
  mged/wm-leg1.ps
  mged/wm-prims.ps
  mged/wm-tube.ps
  notes/ecosystem.dot
  notes/regions.txt
  notes/rounding.txt
  notes/tool_categories.txt
  old-mged.tr
)
add_doc(documentation_mged_old_DATA mged_old REQUIRED "mged")

if(TARGET mged)
  configure_file(pad_file.xml.in "${CMAKE_CURRENT_BINARY_DIR}/pad_file.xml" @ONLY)
  distclean("${CMAKE_CURRENT_BINARY_DIR}/pad_file.xml")
  install(FILES "${CMAKE_CURRENT_BINARY_DIR}/pad_file.xml" DESTINATION ${DOC_DIR})
endif(TARGET mged)

cmakefiles(
  CMakeLists.txt
  STARTERS
  STRATEGY
  git/bisect.txt
  git/check.yml
  git/diffing.txt
  git/git2gource.cpp
  git/gitconfig
  git/gitk
  git/gitstats.txt
  git/gource.sh
  git/gource.txt
  git/history.txt
  git/merging.txt
  git/mime_types.txt
  git/usability.txt
  notes/bsd_semaphore_bug.txt
  notes/cmake_paths/CMakeLists.txt
  notes/cmake_paths/README.txt
  notes/cmake_paths/dir_info.c
  notes/cmake_paths/test.cmake.in
  notes/cmake_vars.txt
  notes/csv_to_comgeom.txt
  notes/implicit_constraints.txt
  notes/lcov.txt
  pad_file.xml.in
)

# Generic C/C++ examples
cmakefiles(
  notes/c_cxx_patterns/01_basic_C/CMakeLists.txt
  notes/c_cxx_patterns/01_basic_C/main.c
  notes/c_cxx_patterns/01_basic_C/nlib.c
  notes/c_cxx_patterns/01_basic_C/nlib.h
  notes/c_cxx_patterns/02_hidden_C/CMakeLists.txt
  notes/c_cxx_patterns/02_hidden_C/main.c
  notes/c_cxx_patterns/02_hidden_C/nlib.c
  notes/c_cxx_patterns/02_hidden_C/nlib.h
  notes/c_cxx_patterns/03_PImpl_C/CMakeLists.txt
  notes/c_cxx_patterns/03_PImpl_C/main.c
  notes/c_cxx_patterns/03_PImpl_C/nlib.c
  notes/c_cxx_patterns/03_PImpl_C/nlib.h
  notes/c_cxx_patterns/04_hidden_CXX/CMakeLists.txt
  notes/c_cxx_patterns/04_hidden_CXX/main.c
  notes/c_cxx_patterns/04_hidden_CXX/nlib.cxx
  notes/c_cxx_patterns/04_hidden_CXX/nlib.h
  notes/c_cxx_patterns/05_PImpl_CXX/CMakeLists.txt
  notes/c_cxx_patterns/05_PImpl_CXX/main.c
  notes/c_cxx_patterns/05_PImpl_CXX/nlib.cxx
  notes/c_cxx_patterns/05_PImpl_CXX/nlib.h
  notes/c_cxx_patterns/CMakeLists.txt
  notes/c_cxx_patterns/README
)

# Notes about parser generators
cmakefiles(
  notes/parsers/bison_to_lemon.txt
  notes/parsers/flex_to_re2c.txt
  notes/parsers/templates/CMakeLists.txt
  notes/parsers/templates/main.c
  notes/parsers/templates/main.h
  notes/parsers/templates/parser.lemon
  notes/parsers/templates/scanner.perplex
  notes/parsers/writing_perplex_lemon_parsers.txt
)

# Local Variables:
# tab-width: 8
# mode: cmake
# indent-tabs-mode: t
# End:
# ex: shiftwidth=2 tabstop=8
